# -*- coding: utf-8 -*-
"""
Created on Tue Sep 24 23:10:45 2019

@author: XCL01
"""


l = float(input('利润(单位万元)   '))
if l <= 40:
    if l <= 10:
        profit = 0.1 * l
        print('应发奖金%s万元'%profit)
    elif l <= 20:
        profit = 1 + 0.075 * (l - 10)
        print('应发奖金%s万元'%profit)
    else:
        profit = 1.75 + 0.05 * (l - 20)
        print('应发奖金%s万元'%profit)
else:
    if l <= 60:
        profit = 0.03 * (l - 40) + 2.75
        print('应发奖金%s万元'%profit)
    elif l <= 100:
        profit = 0.015 * (l - 60) + 3.35
        print('应发奖金%s万元'%profit)
    else:
        profit = 0.01 * (l - 100) + 3.95
        print('应发奖金%s万元'%profit)